every time I try to input string in my python program , he give me an error ,, that I should use " or ' sign .. what I should do I found It's crazy to but ' before my input in the program
You must be logged in to post. Please login or register an account.
Sounds like you probably just have a mistake in the code, could you post your code?
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.
def f(x): ... ... #code
a = input("Enter string : ") f(a) ##
my code generally normal .. but when I open it in shell if i input any string e.g 'Ali' the program stops and show an error say that Ali is not defined I was have python27 but now this problem disappeared with python3.6
-ajMohammad 7 years ago
Last edited 7 years ago
You must be logged in to post. Please login or register an account.
I think i know what your problem was: Python 2 doesn't have an input function. instead it has: raw_input
-mat_shaian 7 years ago
You must be logged in to post. Please login or register an account.